import { myRequest } from './api.js'

// async function adviserList(params) {
// 	const result = await myRequest({
// 		url: '/sign/counselor/list',
// 		data: params,
// 	})
// 	return result
// }

// （顾问）端签约列表
const adviserList = async function(params) {
	return await myRequest({url: '/sign/counselor/list', data: params})
}

// （顾问）端编辑姓名
const editSimple = async function(params) {
	return await myRequest({url: '/activity/member/editSimple',methods: 'POST', data: params})
}

// （顾问）签约详情
const findInfo = async function(params) {
	return await myRequest({url: '/sign/counselor/find', data: params})
}

// （客户）端签约列表
const customerList = async function(params) {
	return await myRequest({url: '/sign/sign/list', data: params})
}

// （客户）客户签署4
const clientSign = async function(params) {
	return await myRequest({url: '/sign/sign/clientSign', data: params})
}

// （客户）签约详情
const findInfoCustomer = async function(params) {
	return await myRequest({url: '/sign/sign/find', data: params})
}

// 查看签约合同
const viewContract = async function(params) {
	return await myRequest({url: '/sign/sign/viewContract', data: params})
}

// 核销列表（app）
const signVerifyList = async function(params) {
	return await myRequest({url: '/sign/signVerify/list', data: params})
}

// 前台核销
const getVerify = async function(params) {
	return await myRequest({url: '/sign/signVerify/verify', data: params})
}

// 签约海报
const getShare = async function(params) {
	return await myRequest({url: '/sign/sign/share', data: params})
}

export {
	adviserList,
	editSimple,
	findInfo,
	customerList,
	clientSign,
	findInfoCustomer,
	viewContract,
	signVerifyList,
	getVerify,
	getShare
}